﻿using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.TwoDevelopment.ZZDT_EC

{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创 建：超级管理员
    /// 日 期：2022-08-23 17:31
    /// 描 述：命名规则，与对象类型和属性都有关联
    /// </summary>
    public class ec_objecttypenamingconvEntity 
    {
        #region 实体成员
        /// <summary>
        /// ObjectTypeNVID
        /// </summary>
        /// <returns></returns>
        [Column("OBJECTTYPENVID")]
        public string ObjectTypeNVID { get; set; }
        /// <summary>
        /// ObjectTypeID
        /// </summary>
        /// <returns></returns>
        [Column("OBJECTTYPEID")]
        public string ObjectTypeID { get; set; }
        /// <summary>
        /// ObjectTypePID
        /// </summary>
        /// <returns></returns>
        [Column("OBJECTTYPEPID")]
        public string ObjectTypePID { get; set; }
        /// <summary>
        /// ObjectTypePName
        /// </summary>
        /// <returns></returns>
        [Column("OBJECTTYPEPNAME")]
        public string ObjectTypePName { get; set; }
        /// <summary>
        /// Segmentno
        /// </summary>
        /// <returns></returns>
        [Column("SEGMENTNO")]
        public string Segmentno { get; set; }
        /// <summary>
        /// Length
        /// </summary>
        /// <returns></returns>
        [Column("LENGTH")]
        public string Length { get; set; }
        /// <summary>
        /// Sepator
        /// </summary>
        /// <returns></returns>
        [Column("SEPATOR")]
        public string Sepator { get; set; }
        /// <summary>
        /// Segmenttype
        /// </summary>
        /// <returns></returns>
        [Column("SEGMENTTYPE")]
        public string Segmenttype { get; set; }
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.ObjectTypeNVID = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        /// <param name="keyValue"></param>
        public void Modify(string keyValue)
        {
            this.ObjectTypeNVID = keyValue;
        }
        #endregion
    }
}

